package com.cloud.code.真题;

import java.util.Scanner;

public class Demo15 {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            String line = scanner.nextLine();
            char[] chars = line.toCharArray();
            for (int i = 0; i < chars.length; i++) {
                int fn = fn(i);
                char aChar = getChar(chars[i], fn);
                chars[i] = aChar;
            }

            System.out.println(new String(chars));
        }
    }

    private static char getChar(char tem, int offset) {

        tem = (char) ((tem - 97 + offset) % 26 + 97);
        return tem;
    }

    private static int fn(int i) {
        if (i == 0) {
            return 1;
        }

        if (i == 1) {
            return 2;
        }
        if (i == 2) {
            return 4;
        }


        return fn(i - 1) + fn(i - 2) + fn(i - 3);
    }
}
